import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntStrHelper } from "./DictIntStrHelper";
import { DictIntIntHelper } from "./DictIntIntHelper";
type int = number;
//class SMarrySkillImitateCancle
    
    export  class SMarrySkillImitateCancle extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMarrySkillImitateCancle();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeString(this.name);
            DictIntStrHelper.write(arg1, this.titles);
            arg1.writeInt(this.avatar);
            arg1.writeInt(this.camp);
            arg1.writeString(this.guildName);
            arg1.writeByte(this.guildLevel);
            arg1.writeByte(this.guildPosition);
            arg1.writeInt(this.sex);
            arg1.writeInt(this.career);
            DictIntIntHelper.write(arg1, this.weapons);
            arg1.writeInt(this.modelId);
            arg1.writeInt(this.level);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.name = arg1.readString();
            this.titles = DictIntStrHelper.read(arg1);
            this.avatar = arg1.readInt();
            this.camp = arg1.readInt();
            this.guildName = arg1.readString();
            this.guildLevel = arg1.readByte();
            this.guildPosition = arg1.readByte();
            this.sex = arg1.readInt();
            this.career = arg1.readInt();
            this.weapons = DictIntIntHelper.read(arg1);
            this.modelId = arg1.readInt();
            this.level = arg1.readInt();
            return;
        }

        public /* const */_type: int=462;

        public /* var */name: string;

        public /* var */titles: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */avatar: int;

        public /* var */camp: int;

        public /* var */guildName: string;

        public /* var */guildLevel: int;

        public /* var */guildPosition: int;

        public /* var */sex: int;

        public /* var */career: int;

        public /* var */weapons: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */modelId: int;

        public /* var */level: int;

        public static /* var */_regist: SMarrySkillImitateCancle;
    }

            SMarrySkillImitateCancle._regist = new SMarrySkillImitateCancle(true);
        